home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / cp2dekit / h / sampler.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-27  |  700 b   |  31 lines

  1. #ifndef __SAMPLER_H
  2. #define __SAMPLER_H
  3.  
  4. #define SMP_BIGBUF 4
  5. #define SMP_FULLBUF 8
  6.  
  7. #define SMP_STEREO 1
  8. #define SMP_16BIT 2
  9. #define SMP_SIGNEDOUT 4
  10. #define SMP_REVERSESTEREO 8
  11.  
  12. #define SMP_MIC 0
  13. #define SMP_LINEIN 1
  14. #define SMP_CD 2
  15.  
  16. extern int smpRate;
  17. extern int smpOpt;
  18. extern int smpBufSize;
  19. extern int (*smpSample)(void *buf, int &len);
  20. extern void (*smpStop)();
  21. extern void (*smpSetOptions)(int rate, int opt);
  22. extern void (*smpSetSource)(int src);
  23. extern int (*smpGetBufPos)();
  24.  
  25. int smpOpenSampler(void *&buf, int &len);
  26. void smpCloseSampler();
  27. void smpGetRealMasterVolume(int &l, int &r);
  28. void smpGetMasterSample(short *s, int len, int rate, int opt);
  29.  
  30. #endif
  31.